import Index from '../page/index/Index'

export default {
	'routes' : [ 
	{
		path: '/',
		component: Index
	},
	{
		path: '/login',
		component: function (resolve) {
			require(['../page/login/Index.vue'], resolve)
		}
	},
	{
		path: '/goods/:id', // 动态路径参数 以冒号开头 id为动态数据
		component: function (resolve) {
			require(['../page/goods/Index.vue'], resolve)
		}
	},
	{
		path: '/search',
		component: function (resolve) {
			require(['../page/search/index.vue'], resolve)
		}
	},
	{
		path: '/category',	
		redirect: '/category/hot',	
		component: function (resolve) {
			require(['../page/category/Index.vue'], resolve)
		}
	},	
		
			{
				path:'/category/hot',
				component: function (resolve) {
					require(['../page/category/default/hot.vue'], resolve)
				}
			},
			{
				path:'/category/men',
				component: function (resolve) {
					require(['../page/category/default/men.vue'], resolve)
				}
			},
			{
				path:'/category/women',
				component: function (resolve) {
					require(['../page/category/default/women.vue'], resolve)
				}
			},
			{
				path:'/category/children',
				component: function (resolve) {
					require(['../page/category/default/children.vue'], resolve)
				}
			},
			{
				path:'/category/shoes',
				component: function (resolve) {
					require(['../page/category/default/shoes.vue'], resolve)
				}
			},
			{
				path:'/category/bags',
				component: function (resolve) {
					require(['../page/category/default/bags.vue'], resolve)
				}
			},
			{
				path:'/category/accessory',
				component: function (resolve) {
					require(['../page/category/default/accessory.vue'], resolve)
				}
			},
			{
				path:'/category/makeup',
				component: function (resolve) {
					require(['../page/category/default/makeup.vue'], resolve)
				}
			},

		
	
	{
		path: '/corp/create',
		component: function (resolve) {
			require(['../page/corp/create/Index.vue'], resolve)
		}
	},
	{
		path: '/corp/search',
		component: function (resolve) {
			require(['../page/corp/search/Index.vue'], resolve)
		}
	},
	{
		path: '/corp/:id',
		component: function (resolve) {
			require(['../page/corp/view/Index.vue'], resolve)
		}
	},
	{
		path: '/project/create',
		component: function (resolve) {
			require(['../page/project/create/Index.vue'], resolve)
		}
	},
	{
		path: '/project/search',
		component: function (resolve) {
			require(['../page/project/search/Index.vue'], resolve)
		}
	},
	{
		path: '/project/:id',
		component: function (resolve) {
			require(['../page/project/view/Index.vue'], resolve)
		}
	},

	]

}
